<?php
require_once dirname(__FILE__) . '/../includes/common.inc.php';
require_once dirname(__FILE__) . '/../includes/pdoorm.inc.php';

header('Content-Type: text/plain');
die;
$sql="
    insert into ns_v1sampleattribute 
    SELECT c.*,a.oid_a AS sample_id FROM ns_sampleattribute AS c LEFT JOIN ns__ez_relation_sample_sampleattribute as a 
 ON  c.e_oid = a.oid_b
";

sql_execute($sql);
